package com.ziyue.socket.enums;

import com.ziyue.socket.service.OptionAbstract;
import com.ziyue.socket.service.impl.*;

/**
 * Created by wancheng on 2019/4/15.
 */
public enum OptionEnum {
    /**
     * 注册
     */
    REGISTER(Register.class),
    /**
     * 发送
     */
    SEND(Send.class),
    /**
     * 学生发送作答详情
     */
    ANSWER_SEND(AnswerSend.class),
    /**
     * 学生结束答题
     */
    ANSWER_FINISH(AnswerFinish.class),
    /**
     * 作答开始
     */
    TEST_START(TestStart.class),
    /**
     * 作答结束
     */
    TEST_FINISH(TestFinish.class),
    /**
     * 更换当前正在进行的活动
     */
    CHANGE_ACTIVITY(ChangeActivity.class),
    /**
     * 更改当前正在进行的问题
     */
    CHANGE_QUESTION(ChangeQuestion.class),
    /**
     * 互动初始化
     */
    ACTIVITY_INIT(ActivityInit.class),
    /**
     * 销毁
     */
    DESTROY(Destroy.class),
    /**
     * 掉线
     */
    INACTIVE(Inactive.class);

    private Class<? extends OptionAbstract> optionClass;

    OptionEnum(Class<? extends OptionAbstract> optionClass) {
        this.optionClass = optionClass;
    }

    public Class<? extends OptionAbstract> getOptionClass() {
        return optionClass;
    }

    public void setOptionClass(Class<? extends OptionAbstract> optionClass) {
        this.optionClass = optionClass;
    }
}
